package edu.zqu.collegeField.framework.activiti.listener.impl;

import edu.zqu.collegeField.framework.activiti.listener.TaskListener;
import org.activiti.engine.delegate.DelegateTask;

public class WorkerExamineListener implements TaskListener {
    //实现TaskListener中的方法
    public void notify(DelegateTask delegateTask) {
        String eventName = delegateTask.getEventName();
        if ("create".endsWith(eventName)) {
            System.out.println("create=========");
        }else if ("assignment".endsWith(eventName)) {
            System.out.println("assignment========");
        }else if ("complete".endsWith(eventName)) {
            System.out.println("complete===========");
        }
    }
}
